﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入字符串：1.炒菜  2.传菜");
            string str = Console.ReadLine();
            Test(str);
        }

        static void Test(string str)
        {
            if (str == "炒菜")
            {
                CookRobot C1 = new CookRobot("小白",menu.开水白菜);
                Count(C1);
                CookRobot C2 = new CookRobot("小黄", menu.西红柿炒鸡蛋);
                Count(C2);
            }
            else if (str == "传菜")
            {
                DeliveryRobot D1 = new DeliveryRobot("小黑",hours.二十四小时);
                Count(D1);
                DeliveryRobot D2 = new DeliveryRobot("小绿", hours.六小时);
                Count(D2);
            }
        }
        static void Count(Robot r)
        {
            r.Working();
        }
    }
}
